//
//  BTEBBTableViewCell.swift
//  BTE
//
//  Created by Mike Zhang on 2025/8/19.
//

import UIKit

class BTEBBTableViewCell: UITableViewCell {

    private let lab = UILabel.init()
    
    private let img = UIImageView.init(image: UIImage.init(named: BTELanguageManager.shared.localizedImageString(forKey: "Group 1171dfewf2f32f23f23f2f23276890")))

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        selectionStyle = .none
     
        backgroundColor = .clear
        contentView.backgroundColor = .clear
        
        lab.font = .systemFont(ofSize: 18, weight: .bold)
        lab.textColor = .black
        lab.text = BTELanguageManager.shared.localizedString(forKey: "Product data display")
        contentView.addSubview(lab)
        lab.snp.makeConstraints { make in
            make.left.equalToSuperview().offset(16)
            make.top.equalToSuperview()
        }
        
        contentView.addSubview(img)
        img.snp.makeConstraints { make in
            make.top.equalTo(lab.snp.bottom).offset(18)
            make.left.right.equalToSuperview().inset(16)
            make.bottom.equalToSuperview().offset(-22)
            make.height.equalTo((UIScreen.main.bounds.width-16-16)*img.bounds.height / img.bounds.width)
        }
        
    }

}
